home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / docs / faqs / ext2fs-f / text0000.txt < prev   
Encoding:
Text File  |  1995-09-10  |  3.8 KB  |  98 lines

  1. In article <AffzDvS00WBOM6ZoF5@andrew.cmu.edu> Joshua Eli Schachter <jsct+@andrew.cmu.edu> writes:
  2. >
  3. >B) During bootup, the drive complains that there are a lot of problems
  4. >with the file system... i am using FS2.
  5. >
  6.  
  7.     Hmmm, seems like there are some frequently asked questions about the
  8. ext 2 fs.  So, I have written a quick and dirty FAQ concerning the ext 2 fs.
  9. This FAQ is included at the end of this posting.  It is also available for
  10. anonymous FTP from ftp.ibp.fr:/pub/linux/ALPHA/ext2fs/ext2fs.FAQ and from
  11. tsx-11.mit.edu:/pub/linux/ALPHA/ext2fs/ext2fs.FAQ.
  12.  
  13. >
  14. >j.e.s.
  15. >
  16.  
  17.     Remy
  18.  
  19. -------------------------------------------------------------------------------
  20.  
  21.         FAQ for the second extended file system
  22.                         Last change on 93/03/24
  23.  
  24.  
  25.     This file contains the answers to some frequently asked questions
  26. regarding the second extended file system.
  27.  
  28. Q: I have created an ext 2 fs on my root file system and, every time I boot
  29.    Linux, I see these messages :
  30.     MINIX-fs magic match failed
  31.     EXT-fs: magic match failed
  32. Does it mean that Linux doesn't recognize my root file system ?
  33.  
  34. A: No.
  35.    When Linux boots, it tries to mount the root file system using the
  36.    different file system types :
  37.     - it first tries to mount / as a minix file system, discovers that it
  38.       is not a minix fs and displays the first error message,
  39.     - then it tries to mount / as an extended file system, discovers that
  40.       it is not an extended fs and displays the second error message.
  41.  
  42. Q: After the two error messages, I see :
  43.     [EXT II FS 0.2c, 93/03/06, bs=1024, fs=1024, gc=##, bpg=##, ipg=####]
  44.     EXT2-fs warning: mounting non valid file system
  45.    Does it mean that there is a problem with the file system ?
  46.  
  47. A: Usually no.
  48.    In fact, the ext 2 fs keeps a valid flag on the disk.  This flag is set to
  49.    0 when the file system is mounted and set to 1 when it is unmounted.  The
  50.    valid flag is checked by e2fsck to know if a file system needs checking (if
  51.    the flag is set to 1, e2fsck assumes that the file system is clean and does
  52.    not check it).
  53.  
  54.    The root file system is the only fs which cannot be unmounted so the valid
  55.    flag is always set to 0.  When booting, the kernel mounts it and checks its
  56.    valid flag.  As this flag is set to 0, it displays a warning.
  57.  
  58.    You can safely ignore this warning for the root file system.  Note that it
  59.    is a good idea to run e2fsck on the fs.
  60.  
  61. Q: I have tried to create an ext 2 file system with mke2fs and it dies with
  62.    'Out of memory'.  What is the problem ?
  63.  
  64. A: The problem comes from mke2fs itself.  mke2fs eats lots of memory to create
  65.    a file system since it creates a memory copy of the inode table.  The
  66.    problem has been fixed in recent versions (0.2c+ or above).  Note that
  67.    e2fsck still has the same problem.
  68.  
  69. Q: I have tried to create an ext 2 fs with mke2fs and it dies with the
  70.    message :
  71.     mke2fs: Unable to find a block for the block bitmap
  72.    or :
  73.     mke2fs: Unable to find a block for the inode bitmap
  74.    or:
  75.     mke2fs: Unable to find a block for the inode table
  76.    What is the problem ?
  77.  
  78. A: An ext 2 fs is made of several blocks groups.  Each group contains a copy
  79.    of the super block, a copy of the fs descriptors, two bitmap blocks and
  80.    a part of the inode table.  Each group is 8192 blocks long.
  81.  
  82.    When you create a file system, mke2fs divides the total number of blocks by
  83.    8192 to compute the number of groups.  Then, it tries to write the control
  84.    informations into each group.  Sometimes, the last group may be too small to
  85.    contain these informations and mke2fs simply dies when it detects the
  86.    problem.  This (stupid) behaviour will be fixed in a future release.
  87.  
  88.    With the current release, you can bypass the problem by creating a smaller
  89.    or bigger file system (i.e. decrease or increase the blocks count).
  90.  
  91. -------------------------------------------------------------------------------
  92. --
  93.  
  94.     Remy Card
  95.     card@masi.ibp.fr
  96.  
  97.  
  98.